<?php
namespace app\logistics\model;

use think\Model;
use app\Common\Common;

/**
 * 物流规则Model类
 * @author huangfeng
 * @date 2024-7-2
 */
class LogisticsRules extends Model
{
    public function getLogisticsNameTextAttr($value,$data)
    {
        $obCommon = new Common();
        $logistics_name_text = $obCommon->getSysDictText('cn',$data['logistics_name'],'d_logistics');
        return $logistics_name_text;
    }

    public function getFromNationTextAttr($value,$data)
    {
        $obCommon = new Common();
        $logistics_name_text = $obCommon->getSysDictText('cn',$data['from_nation'],'d_nation');
        return $logistics_name_text;
    }

    public function getToNationTextAttr($value,$data)
    {
        $obCommon = new Common();
        $logistics_name_text = $obCommon->getSysDictText('cn',$data['to_nation'],'d_nation');
        return $logistics_name_text;
    }
}
?>
